using Battle.Managers;
using Core.Data;
using Core.Joystick;
using Core.Managers;
using View;

namespace Core
{
    public class BattleWorld
    {
        private JoystickManager m_joystickManager;

        private ViewManager m_ViewManager;

        private UnitManager m_UnitManager;

        public BattleWorld()
        {
            m_joystickManager = new JoystickManager();
            m_ViewManager = new ViewManager(this);
            m_UnitManager = new UnitManager(this);
        }

        public void OnCreate(IViewBehaviour behaviour, BattleData data)
        {
            m_ViewManager.OnCreate(behaviour, data);
            m_UnitManager.OnCreate(behaviour,data);
        }

        public void OnDestroy()
        {
        }

        public void Update()
        {
            m_joystickManager.Update();
        }
    }
}